package com.example.app3;

public class Card {
    private int id;
    private int imageResId;
    private boolean isFlipped;
    private boolean isMatched;

    public Card(int id, int imageResId) {
        this.id = id;
        this.imageResId = imageResId;
        this.isFlipped = false;
        this.isMatched = false;
    }

    public int getId() { return id; }
    public int getImageResId() { return imageResId; }
    public boolean isFlipped() { return isFlipped; }
    public void setFlipped(boolean flipped) { isFlipped = flipped; }
    public boolean isMatched() { return isMatched; }
    public void setMatched(boolean matched) { isMatched = matched; }
}